<?//顺序是固定的，先连接数据库是最优先的。config中有很多设置，是要用到函数的?>
<?php include_once ("../connection.php");?>
<?php include_once ("../config.php");?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include_once (THEME_PATH_."/controller/introduce-list.php"); ?>
    <?php include 'modules/head.php'; ?>
    <link href="/front/<?php echo $theme_folder ?>/assets/css/theme/pages/introduce.css" rel="stylesheet" type="text/css" />
</head>






<body class="<?echo $system_part ?>-<?echo $system_part_level ?>">
<?php include 'modules/topbar.php'; ?>
<?php include 'modules/menu.php'; ?>
<?php include 'modules/banner.php'; ?>





<!--container/main-->
<div class="container">
    <div class="main">
        <!--container/main-->



        <div class="location">
            <?php include 'modules/location-list.php'; ?>
        </div>



        <div class="head">
            <div class="bg" ><span style=";"><?echo $data['page']['name']?></span></div>
            <div class="subtitle"><?echo $data['page']['subtitle']?></div>
            <h1><?echo $data['page']['name']?><hr/></h1>
        </div>



        <div class="sidebar">
            <?php include 'modules/sidebar-introduce.php'; ?>
        </div>




        <div class="list">

            <ul>
                <?php if ($detailnum == 0) {
                    echo "数据添加中";
                }
                ?>
                <?php foreach($data['detail_list'] as $k=>$v) {
                    ?>



                    <li>
                        <a href="<? echo $v['url'] ?>.html">

                            <div class="image media">
                                <div class="overlay"></div>
                                <img src="/uploadfiles/<? echo $theme_folder ?>/<? echo $v['icon']?>" alt="<? echo $v['name']; ?>" title="<? echo $v['name'] ?>" />
                                <div class="image-details">
                                    <p><i class="fa fa-search" aria-hidden="true"></i> 查看</p>
                                </div>


                                <div class="introduce-hot-recom">
                                    <!--热销产品-->
                                    <? if ($v['hotsale']) { ?>
                                        <img class="introduce-hot" src="/front/<? echo $theme_folder ?>/assets/images/hot.png" alt="热门产品">
                                    <? } ?>
                                    <!--推荐产品-->
                                    <? if ($v['recommend']) { ?>
                                        <img class="introduce-recom" src="/front/<? echo $theme_folder ?>/assets/images/recom.png" alt="推荐产品">
                                    <? } ?>
                                </div>

                            </div>


                            <h5 class="els2"><?echo $v['name']; ?></h5>

                            <h6 class="els2"> <? echo $v['model']; ?> </h6>

                            <p class="els2"><? echo $v['introduce']; ?> </p>



                            <div class="introduce-info">
                                <div class="introduce-info-watched">
                                    <img src="/front/<? echo $theme_folder ?>/assets/images/watched.png" alt="点击率">
                                    <span><? echo  $v['clickrate'] ?></span>
                                </div>
                                <div class="introduce-info-click">
                                    <img src="/front/<? echo $theme_folder ?>/assets/images/click-to-view.png" alt="点击查看">
                                    <!-- <span>点击查看</span> -->
                                </div>
                            </div>


                        </a>
                    </li>








                    <? php;
                } ?>
            </ul>


            <br class="clearfloat" />


            <div id="pages">
                <?php include 'modules/page.php'; ?>
            </div>


            <!--list-->
        </div>



        <!--container/main-->
        <br class="clearfloat">
    </div>
</div>
<!--container/main-->



<?php include 'modules/footer.php'; ?>
</body>
</html>







